﻿var totalPage = 0, pageIndex = 1;

function page() {
    layui.use(['laypage', 'layer'], function () {
        var laypage = layui.laypage
        , layer = layui.layer;
        laypage({
            curr: pageIndex,
            cont: 'page',
            pages: totalPage,
            jump: function (obj, first) {
                pageIndex = obj.curr;
                if (!first) {
                    loadlist();
                }
            }
        });

    });
}

function search() {
    totalPage = 0, pageIndex = 1;
    loadlist();
}


